package com.imooc.service;

import com.imooc.common.result.ResponseData;
import com.imooc.dto.user.UserLoginRequest;
import com.imooc.dto.user.UserLoginResponse;
import com.imooc.dto.user.UserRegistRequest;
import com.imooc.dto.user.UserRegistResponse;
import com.imooc.pojo.Stu;
import com.imooc.pojo.Users;
import com.imooc.pojo.bo.UserBO;

/**
 * @ClassName: IUserService
 * @description: 用户 Service 接口
 * @author: limx
 * @create: 2019-12-21 08:40
 **/
public interface IUserService {

    /**
     * 判断用户名是否存在
     * @param username
     * @return
     */
    ResponseData queryUsernameIsExist(String username);

    /**
     * 创建用户
     * @param registRequest
     * @return
     */
    UserRegistResponse createUser(UserRegistRequest registRequest);

    /**
     * 用户登录
     * @param request
     * @return
     */
    UserLoginResponse userLogin(UserLoginRequest request);
}
